package stan;

public class ConnectionStateDisconnected extends ConnectionState {

    public ConnectionStateDisconnected(Connection connection) {
        super(connection);
    }

    public void connect() {

        connection.setState(connection.CONNECTED);
    }

    public void disconnect() {
        throw new IllegalStateException("Already disconnected");
    }

    public boolean isConnected() {
        return false;
    }

}
